package cn.wolfcode.shop.web;

import cn.wolfcode.shop.web.util.IsMobile;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Setter
@Getter
public class LoginVo {
    @NotEmpty(message = "手机号码不能够为空")
    @IsMobile(required = false)
    private String mobile;
    @NotEmpty(message = "密码不能为空")
    private String password;
}
